Tridiagonal matrix